<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>CSS 2D转换</title>
	<style>
		body {
			margin: 0;
			padding: 0;
			background-color: #F7F7F7;
		}

		/*理解2D坐标 Y轴正方向向下，X轴正方向右*/


		.box{
			width: 1000px;
			height: 500px;
			border: 1px solid #000;
		}

		.translate {
			width: 200px;
			height: 200px;
			background-color: green;
			transition: all 3s linear;
		}


		.box:hover .translate{

			transform: translate(800px,300px) rotate(50deg) ;
		}

		



	</style>
</head>
<body>
	<div class="box">
		
		<div class="translate"></div>

	</div>
</body>
</html>